import axios from '../../axios.js';

const login = {
    login: function (account) {
        return axios({
            url: '/users/login',
            method: "post",
            data: account
        })
    },
    // 判断是否登录
    isLogin() {
        return axios({
            url: '/users/isLogin',
            method: 'get',
        })
    },
}
export default login;